<?php
session_start();
error_reporting(0);
include "../config/session.php";
if($_SESSION[login]==1){
	if(!cek_login()){
		$_SESSION[login] = 0;
	}
}
if($_SESSION[login]==0){
  header('location:logout.php');
}
else{
if (empty($_SESSION['username']) AND empty($_SESSION['passuser']) AND $_SESSION['login']==0){
  echo "<link href='style.css' rel='stylesheet' type='text/css'>
 <center>Untuk mengakses laman, Anda harus login <br>";
  echo "<a href=index.php><b>LOGIN</b></a></center>";
}
else{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sistem Informasi Staff</title>
<style type="text/css">
<!-- 
@import url("../config/css/staff.css");
-->
</style>
<link href="../config/css/thickbox.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../config/js/jquery.js"></script>
  <script language="javascript" src="../config/js/thickbox.js"></script>
  <script language="javascript" src="../config/js/jquery.form.js"></script>

</head>
<body class="oneColFixCtrHdr" >
 <? if ($_SESSION['leveluser']=='staf'){  ?>
<div id="container">
  <div id="header">

  <!-- end #header --></div>
  <div id="mainContent">
<div class="menu_staf">
<ul id="nav">
<li><a href="dasbord.php?mod=home">Beranda</a></li>
<li><a href="#">Mahasiswa</a>
<ul>
<li><a href="dasbord.php?mod=mahasiswa">Data Mahasiswa</a></li>
<li><a href="dasbord.php?mod=inputproposal">Input Proposal</a></li>
<li><a href="#">Input Kelulusan</a>
<ul>
<li><a href="dasbord.php?mod=skripsi">Skripsi</a></li>
<li><a href="dasbord.php?mod=nonskripsi">Non Skripsi</a></li>
</ul>
</li>

</ul>
</li>
<li><a href="#">Dosen</a>
<ul>
<li><a href="#">Input Dosen</a></li>
</ul>
</li>
<li><a href="#">Cetak Laporan</a>
<ul>
<li><a href="dasbord.php?mod=cekproposal">Cetak Proposal</a></li>
<li><a href="#">Cetak Kelulusan</a>
<ul>
<li><a href="dasbord.php?mod=cekskripsi">Cetak Kelulusan Skripsi</a></li>
<li><a href="dasbord.php?mod=ceknonskripsi">Cetak Kelulusan Non Skripsi</a></li>
</ul>

</li>
</ul>
</li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
<div class="isi_content"><?php include'conten.php'; ?>  
  
</div>
</div>
  <div id="footer">
    <p>CopyRight © 2013 STIE INDONESIA pg All Right Reserved</p>
</div>
</div>

<? } if ($_SESSION['leveluser']=='dosen'){ ?>
<div id="container">
  <div id="header">

  <!-- end #header --></div>
  <div id="mainContent">
<div><a href="index.php">Home</a> | <a href="logout.php">Logout</a> </div>
<div class="isi_content">
<?php include'conten2.php'; ?>  
  
</div>
</div>
  <div id="footer">
    <p>CopyRight © 2013 STIE INDONESIA pg All Right Reserved</p>
</div>
</div>

<? }
 if ($_SESSION['leveluser']!='dosen' and $_SESSION['leveluser']!='staf'){ 
  echo "<script>alert('anda blm terdaftaf sebagai Dosen atau Staf');window.history.back()</script>";
}
 ?>
</body>
</html>


<? } } ?>